package tools;

public class Pager {
	/** 
	* �Ƿ�����һҳ 
	*/ 
	private boolean hasPrePage; 
	/** 
	* �Ƿ�����һҳ 
	*/ 
	private boolean hasNextPage; 
	/** 
	* ÿҳ���� 
	*/ 
	private int everyPage; 
	/** 
	* ��ҳ�� 
	*/ 
	private int totalPage; 
	/** 
	* ��ǰҳ 
	*/ 
	private int currentPage; 
	/** 
	* ��ʼ�� 
	*/ 
	private int beginIndex; 
	/** 
	* �ܼ�¼�� 
	*/ 
	private int totalCount; 
	/** 
	* ��ҳ��� 
	*/ 
	private String pageName; 
	/** 
	* ��ѯ��� 
	*/ 
	private String conString; 
	
	public String getConString() { 
	   return conString; 
	} 
	/** 
	* ���ò�ѯ��� 
	*/ 
	public void setConString(String conditionString) { 
	this .conString = conditionString; 
	} 
	/** 
	* ���ø�ҳ��ƣ�����ѯ���� 
	*/ 
	public String getPageName() { 
	return pageName; 
	} 
	public void setPageName(String tableName) { 
	this .pageName = tableName; 
	} 
	public int getTotalCount() { 
	return totalCount; 
	} 
	/** 
	* �����ܼ�¼�� 
	*/ public void setTotalCount( int totalCount) { 
	this .totalCount = totalCount; 
	} 
	// construct the page by everyPage
	public Pager( int everyPage){ 
	this .everyPage = everyPage; 
	} 
	//The whole constructor 
    public Pager( boolean hasPrePage, boolean hasNextPage, 
	int everyPage, int totalPage, 
	int currentPage, int beginIndex, int totalCount, 
	String pageName,String conString) { 
	this.hasPrePage = hasPrePage; 
	this.hasNextPage = hasNextPage; 
	this.everyPage = everyPage; 
	this.totalPage = totalPage; 
	this.currentPage = currentPage; 
	this.beginIndex = beginIndex; 
	this.totalCount = totalCount; 
	this.pageName = pageName; 
	this.conString = conString; 
	} 
	public int getBeginIndex() { 
	return beginIndex; 
	} 
	/** 
	* ������ʼ�� 
	*/ public void setBeginIndex( int beginIndex) { 
	this .beginIndex = beginIndex; 
	} 
	public int getCurrentPage() { 
	return currentPage; 
	} 
	/** 
	* ���õ�ǰҳ 
	*/ 
	public void setCurrentPage( int currentPage) { 
	this .currentPage = currentPage; 
	} 
	public int getEveryPage() { 
	return everyPage; 
	} 
	/** 
	* ����ÿҳ���� 
	*/ 
	public void setEveryPage( int everyPage) { 
	this .everyPage = everyPage; 
	} 
	/** 
	* �Ƿ�����һҳ 
	*/ 
	public boolean getHasNextPage() { 
	return hasNextPage; 
	} 
	public void setHasNextPage( boolean hasNextPage) { 
	this .hasNextPage = hasNextPage; 
	} 
	/** 
	* �Ƿ�����һҳ 
	*/ 
	public boolean getHasPrePage() { 
	return hasPrePage; 
	} 
	public void setHasPrePage( boolean hasPrePage) { 
	this .hasPrePage = hasPrePage; 
	} 
	public int getTotalPage() { 
	return totalPage; 
	} 
	/** 
	* ������ҳ�� 
	*/ 
	public void setTotalPage( int totalPage) { 
	this .totalPage = totalPage; 
	} 

}
